From 1edbc90d9991dcf2196114bf1d7ac2a75b996f3a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 4 May 2010 12:10:54 +0100 Subject: [PATCH] xm: catch TypeError if xenconsole is nonexistent Signed-off-by: Yu Zhiguo --- tools/python/xen/util/auxbin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/util/auxbin.py b/tools/python/xen/util/auxbin.py index 8dd2e5dec0..a690ad94d1 100644 --- a/tools/python/xen/util/auxbin.py +++ b/tools/python/xen/util/auxbin.py @@ -28,7 +28,7 @@ def execute(exe, args = None): a.extend(args) try: os.execv(exepath, a) - except OSError, exn: + except (OSError, TypeError), exn: print exepath, ": ", exn sys.exit(1) -- 2.30.2